Location: BondGraph Basic @ d8de10edb753 / BG Tutorial Biochemical Systems / PK.cellml

Author:
Soroush <ssaf006@aucklanduni.ac.nz>
Date:
2018-06-25 19:01:14+12:00
Desc:
adding new examples
Permanent Source URI:
https://models.cellml.org/workspace/43b/rawfile/d8de10edb753792c2741c0619a65288ffcbddecc/BG Tutorial Biochemical Systems/PK.cellml

<?xml version='1.0'?>
<model name="PK_RacemicWarfarin" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="Units.cellml">
        <units name="per_mol" units_ref="per_mol"/>
        <units name="J_per_mol" units_ref="J_per_mol"/>
        <units name="J_per_mol_K" units_ref="J_per_mol_K"/>
        <units name="mol_per_s" units_ref="mol_per_s"/>
        <units name="per_s" units_ref="per_s"/>
        <units name="g_per_s" units_ref="g_per_s"/>
        <units name="g_per_l" units_ref="g_per_l"/>
        <units name="l_per_s" units_ref="l_per_s"/>
    </import>
    <component name="state">
        <variable name="t" units="second"/>
        <!-- State variables-->
        <variable initial_value="0.001" name="q_A1" units="gram"/>
        <variable initial_value="0.0" name="q_A2" units="gram"/>
        <variable name="q_C" units="g_per_l"/>
        <variable name="v_1" units="g_per_s"/>
        <variable name="v_2" units="g_per_s"/>
        <!-- Parameters-->
        <variable initial_value="8.1" name="k_V" units="litre"/>
        <variable initial_value="0.00003722" name="k_CL" units="l_per_s"/>
        <variable initial_value="0.00003333" name="k_1f" units="per_s"/>
        <variable name="k_2f" units="per_s"/>
        <!-- Parameters equations-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>k_2f</ci>
                <apply>
                    <divide/>
                    <ci>k_CL</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
            <!-- State equations-->
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A1</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_A2</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_1</ci>
                    <ci>v_2</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_1</ci>
                <apply>
                    <times/>
                    <ci>k_1f</ci>
                    <ci>q_A1</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_2</ci>
                <apply>
                    <times/>
                    <ci>k_2f</ci>
                    <ci>q_A2</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>q_C</ci>
                <apply>
                    <divide/>
                    <ci>q_A2</ci>
                    <ci>k_V</ci>
                </apply>
            </apply>
        </math>
    </component>
</model>